package com.zs.wl.springbootdemo.demos.Mapper;

import com.zs.wl.springbootdemo.demos.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;



//1.告诉jdk jvm UserMapper干嘛用的
//2.new UserMapper   交给 spring 处理
@Mapper
public interface UserMapper {



    @Select("select * from tb_user")
    List<User> getUsers();
}
